/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ronin.dao.api;

import com.ronin.model.Menu;
import java.util.List;

/**
 *
 * @author esimsek
 */
public interface IMenuDao {
    
    Menu getSingle(Menu menu);
    
    Menu getSingleById(Long id);
    
    Menu getSingleOneByNamedQuery(String namedQuery,Object... parameters);
    
    List<Menu> getList(Menu menu);
    
    List<Menu> getListByNamedQuery(String namedQuery,Object... parameters);
    
    int getCount(Menu menu);

    void add(Menu menu);

    void update(Menu menu);

    void delete(Menu menu);
}
